<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>21_CSS3-新增背景属性-background-clip</title>
        <style>
            div {
                width: 800px;
                height: 500px;
                border: 20px dashed red;
                padding: 30px;

                background-image: url(./img/bg03.jpg);
                background-repeat: no-repeat;

                background-origin: border-box;

                background-clip: border-box;
                background-clip: padding-box;
                background-clip: content-box;
            }
        </style>
    </head>
    <body>
        <div></div>
    </body>
</html>